home *** CD-ROM | disk | FTP | other *** search
/ The Atari Compendium / The Atari Compendium (Toad Computers) (1994).iso / files / prgtools / mint / utilit~1 / groffvar.zoo / source / makefile < prev    next >
Encoding:
Makefile  |  1993-03-05  |  12.6 KB  |  378 lines

  1. # Generated automatically from Makefile.in by configure.
  2. # Copyright (C) 1989, 1990, 1991, 1992, 1993 Free Software Foundation, Inc.
  3. #      Written by James Clark (jjc@jclark.com)
  4. # This file is part of groff.
  5. # groff is free software; you can redistribute it and/or modify it under
  6. # the terms of the GNU General Public License as published by the Free
  7. # Software Foundation; either version 2, or (at your option) any later
  8. # version.
  9. # groff is distributed in the hope that it will be useful, but WITHOUT ANY
  10. # WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11. # FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12. # for more details.
  13. # You should have received a copy of the GNU General Public License along
  14. # with groff; see the file COPYING.  If not, write to the Free Software
  15. # Foundation, 675 Mass Ave, Cambridge, MA 02139, USA.
  16.  
  17. # Define `page' to be letter if your PostScript printer uses 8.5x11
  18. # paper (USA) and define it to be A4, if it uses A4 paper (rest of the
  19. # world).
  20. PAGE=A4
  21.  
  22. # Normally the Postscript driver, grops, produces output that conforms
  23. # to version 3.0 of the Adobe Document Structuring Conventions.
  24. # Unfortunately some spoolers and previewers can't handle such output.
  25. # The BROKEN_SPOOLER_FLAGS variable tells grops what it should do to
  26. # make its output acceptable to such programs.  This variable controls
  27. # only the default behaviour of grops; the behaviour can be changed at
  28. # runtime by the grops -b option (and so by groff -P-b).
  29. # Use a value of 0 if your spoolers and previewers are able to handle
  30. # conforming PostScript correctly.
  31. # Add 1 if no %%{Begin,End}DocumentSetup comments should be generated;
  32. # this is needed for early versions of TranScript that get confused by
  33. # anything between the %%EndProlog line and the first %%Page: comment.
  34. # Add 2 if lines in included files beginning with %! should be
  35. # stripped out; this is needed for the OpenWindows 2.0 pageview previewer.
  36. # Add 4 if %%Page, %%Trailer and %%EndProlog comments should be
  37. # stripped out of included files; this is needed for spoolers that
  38. # don't understand the %%{Begin,End}Document comments. I suspect this
  39. # includes early versions of TranScript.
  40. BROKEN_SPOOLER_FLAGS=0
  41.  
  42. # DEVICE is the default device.
  43. DEVICE=ascii
  44.  
  45. # PSPRINT is the command to use for printing a PostScript file,
  46. # for example `lpr'.
  47. #PSPRINT=lpr
  48.  
  49. # DVIPRINT is the command to use for printing a TeX dvi file,
  50. # for example `lpr -d'.
  51. #DVIPRINT=lpr -d
  52.  
  53. # Prefix for names of programs that have Unix counterparts.
  54. # For example, if `g' is `g' then troff will be installed as
  55. # gtroff.  This doesn't affect programs like grops or groff that have
  56. # no Unix counterparts.  Note that the groff versions of eqn and tbl
  57. # will not work with Unix troff.  This is also use in the definitions
  58. # of tmac_s and tmac_m.
  59. g=
  60.  
  61. # The groff ms macros will be available as -m$(tmac_s).
  62. # If you use `tmac_s=s', you can use the Unix ms macros by using
  63. # groff -ms -M/usr/lib/tmac.
  64. tmac_s=$(g)s
  65.  
  66. # Similarily, the groff mm macros will be available as -m$(tmac_m).
  67. tmac_m=$(g)m
  68.  
  69. # Common prefix for installation directories.
  70. # Used in definitions of exec_prefix, datasubdir, fontpath, manroot.
  71. # This must already exist when you do make install.
  72. prefix=
  73.  
  74. exec_prefix=${prefix}
  75.  
  76. # bindir says where to install executables.
  77. bindir=/gnu/groffbin
  78.  
  79. # datasubdir says where to install data files
  80. datadir=/usr/lib
  81. datasubdir=$(datadir)/groff
  82.  
  83. # fontdir says where to install dev*/*.
  84. fontdir=$(datasubdir)/font
  85.  
  86. # fontpath says where to look for dev*/*.
  87. fontpath=.:$(fontdir):/usr/lib/font:/lib/font
  88.  
  89. # tmacdir says where to install macros.
  90. tmacdir=$(datasubdir)/tmac
  91.  
  92. # tmacpath says where to look for macro files.
  93. tmacpath=.:$(tmacdir):/usr/lib/tmac
  94.  
  95. # Extension to be used for refer index files.  Index files are not
  96. # shareable between different architectures, so you might want to use
  97. # different suffixes for different architectures.  Choose an extension
  98. # that doesn't conflict with refer or any other indexing program.
  99. indexext=.i
  100.  
  101. # Directory containing the default index for refer.
  102. indexdir=/usr/dict/papers
  103.  
  104. # The filename (without suffix) of the default index for refer.
  105. indexname=Ind
  106.  
  107. # common_words_file is a file containing a list of common words.
  108. # If your system provides /usr/lib/eign it will be copied onto this,
  109. # otherwise the supplied eign file will be used.
  110. common_words_file=$(datasubdir)/eign
  111.  
  112. # manroot is the root of the man page directory tree.
  113. manroot=/usr/man
  114.  
  115. # man1ext is the man section for user commands.
  116. man1ext=1
  117. man1dir=$(manroot)/man$(man1ext)
  118.  
  119. # man5ext is the man section for file formats.
  120. man5ext=5
  121. man5dir=$(manroot)/man$(man5ext)
  122.  
  123. # man7ext is the man section for macros.
  124. man7ext=7
  125. man7dir=$(manroot)/man$(man7ext)
  126.  
  127. # DEFINES should include the following:
  128. # -DHAVE_MMAP            if you have mmap() and <sys/mman.h>
  129. # -DCFRONT_ANSI_BUG        if you're using cfront 2.0 (or later?) with
  130. #                an ANSI C compiler
  131. # -DCOOKIE_BUG            if you're using gcc/g++ 2.[012] (you should
  132. #                upgrade to 2.3).
  133. # -DARRAY_DELETE_NEEDS_SIZE    if your C++ doesn't understand `delete []'
  134. # -DHAVE_SYS_SIGLIST        if you have sys_siglist[]
  135. # -DWCOREFLAG=0200        if the 0200 bit of the status returned by
  136. #                wait() indicates whether a core image was
  137. #                produced for a process that was terminated
  138. #                by a signal
  139. # -DHAVE_UNISTD_H        if you have <unistd.h>
  140. # -DHAVE_CC_UNISTD_H        if you have a C++ <unistd.h>
  141. # -DHAVE_DIRENT_H        if you have <dirent.h>
  142. # -DHAVE_LIMITS_H        if you have <limits.h>
  143. # -DHAVE_CC_LIMITS_H        if you have a C++ <limits.h>
  144. # -DHAVE_SYS_DIR_H        if you have <sys/dir.h>
  145. # -DHAVE_STDLIB_H        if you have <stdlib.h>
  146. # -DHAVE_VFORK_H        if you have <vfork.h>
  147. # -Dvfork=fork            if you don't have a working vfork()
  148. # -DHAVE_RENAME            if you have rename()
  149. # -DHAVE_MKSTEMP        if you have mkstemp()
  150. # -DSTDLIB_H_DECLARES_GETOPT    if your C++ <stdlib.h> declares getopt()
  151. # -DUNISTD_H_DECLARES_GETOPT    if your C++ <unistd.h> declares getopt()
  152. # -DSTDLIB_H_DECLARES_PUTENV    if your C++ <stdlib.h> declares putenv()
  153. # -DTRADITIONAL_CPP        if your C++ compiler uses a traditional
  154. #                (Reiser) preprocessor.
  155. # -DLONG_FOR_TIME_T        if localtime() takes a long * not a time_t *
  156. # -DHAVE_STRUCT_EXCEPTION    if <math.h> defines struct exception
  157. # -DRETSIGTYPE=int        if signal handlers return int not void    
  158. DEFINES= -DHAVE_UNISTD_H=1 -DHAVE_DIRENT_H=1 -DHAVE_LIMITS_H=1 \
  159.          -DHAVE_STDLIB_H=1 -DHAVE_CC_LIMITS_H=1 -DHAVE_CC_UNISTD_H=1 \
  160.          -DRETSIGTYPE=void -DHAVE_STRUCT_EXCEPTION=1 -DHAVE_RENAME=1 \
  161.          -DWCOREFLAG=0200 -DUNISTD_H_DECLARES_GETOPT=1
  162.          
  163.  
  164. # Include fmod.o, strtol.o, getcwd.o, strerror.o, putenv.o  in LIBOBJS if
  165. # your C library is missing the corresponding function.
  166. LIBOBJS=
  167.  
  168. # CCC is the compiler for C++ (.cc) files.
  169. CCC=/gnu/bin/gcc.ttp
  170. CC=/gnu/bin/gcc.ttp
  171. # CCDEFINES are definitions for C++ compilations.
  172. CCDEFINES=$(DEFINES)
  173. # CDEFINES are definitions for C compilations.
  174. CDEFINES=$(DEFINES)
  175.  
  176. DEBUG=-g
  177. CCFLAGS=-O2 -fomit-frame-pointer
  178. CFLAGS=-O2 -fomit-frame-pointer
  179. YACC=bison
  180. YACCFLAGS=-v
  181.  
  182. LIBS=-lg++
  183. CCLIBS=
  184. RANLIB=@:
  185. INSTALL=/bin/install -c
  186. INSTALL_PROGRAM=$(INSTALL)
  187. INSTALL_DATA=$(INSTALL) -m 644
  188. LN_S=ln -s
  189. AR=ar
  190. #ETAGS=etags
  191. #ETAGSFLAGS=
  192. # Flag that tells etags to assume C++.
  193. ETAGSCCFLAG=
  194. # Full path to perl.
  195. PERLPATH=/bin/perl
  196.  
  197. srcdir = .
  198. VPATH = .
  199.  
  200. MDEFINES="PAGE=$(PAGE)" "BROKEN_SPOOLER_FLAGS=$(BROKEN_SPOOLER_FLAGS)" \
  201.   "DEVICE=$(DEVICE)" "PSPRINT=$(PSPRINT)" "DVIPRINT=$(DVIPRINT)" \
  202.   "prefix=$(prefix)" "exec_prefix=$(exec_prefix)" "bindir=$(bindir)" \
  203.   "g=$(g)" "datadir=$(datadir)" "datasubdir=$(datasubdir)" \
  204.   "fontdir=$(fontdir)" "fontpath=$(fontpath)" \
  205.   "tmacdir=$(tmacdir)" "tmacpath=$(tmacpath)" \
  206.   "indexext=$(indexext)" "indexdir=$(indexdir)" \
  207.   "indexname=$(indexname)" "common_words_file=$(common_words_file)" \
  208.   "manroot=$(manroot)" "man1ext=$(man1ext)" "man1dir=$(man1dir)" \
  209.   "man5ext=$(man5ext)" "man5dir=$(man5dir)" \
  210.   "man7ext=$(man7ext)" "man7dir=$(man7dir)" \
  211.   "tmac_s=$(tmac_s)" "tmac_m=$(tmac_m)" \
  212.   "CCC=$(CCC)" "CC=$(CC)" "CCDEFINES=$(CCDEFINES)" "CDEFINES=$(CDEFINES)" \
  213.   "CCFLAGS=$(CCFLAGS)" "CFLAGS=$(CFLAGS)" \
  214.   "YACC=$(YACC)" "YACCFLAGS=$(YACCFLAGS)" \
  215.   "LIBS=$(LIBS)" "CCLIBS=$(CCLIBS)" "LIBOBJS=$(LIBOBJS)" \
  216.   "RANLIB=$(RANLIB)" "AR=$(AR)" \
  217.   "INSTALL_PROGRAM=$(INSTALL_PROGRAM)" "INSTALL_DATA=$(INSTALL_DATA)" \
  218.   "ETAGS=$(ETAGS)" "ETAGSFLAGS=$(ETAGSFLAGS)" "ETAGSCCFLAG=$(ETAGSCCFLAG)" \
  219.   "PERLPATH=$(PERLPATH)" 
  220.  
  221. SHELL=/bin/sh
  222. INCDIRS=include
  223. LIBDIRS=libgroff libdriver libbib
  224. CCPROGDIRS=groff troff tbl pic eqn grops grotty grodvi tfmtodit \
  225.   refer lookbib indxbib lkbib soelim addftinfo
  226. CPROGDIRS=pfbtops psbb
  227. PROGDIRS=$(CCPROGDIRS) $(CPROGDIRS)
  228. DEVDIRS=devps devdvi devascii devlatin1 devX75 devX75-12 devX100 devX100-12
  229. OTHERDIRS=man tmac afmtodit grog nroff mm
  230. ALLDIRS=$(INCDIRS) $(LIBDIRS) $(PROGDIRS) $(DEVDIRS) $(OTHERDIRS)
  231. EXTRADIRS=devps/generate devdvi/generate xditview doc
  232. DISTDIRS=$(ALLDIRS) $(EXTRADIRS)
  233. TARGETS=all install install_bin install_data clean distclean mostlyclean \
  234.   realclean extraclean distfiles TAGS depend uninstall_sub
  235.  
  236. do=all
  237. dodirs=$(ALLDIRS) dot
  238. # Default target for subdir_Makefile
  239. subdir=troff
  240.  
  241.  
  242. $(TARGETS):
  243.     @$(MAKE) $(MDEFINES) do=$@ $(dodirs)
  244.  
  245. dot: FORCE
  246.     @$(MAKE) $(MDEFINES) srcdir=$(srcdir) VPATH=$(srcdir) \
  247.         -f $(srcdir)/Makefile.comm -f $(srcdir)/Makefile.sub $(do)
  248.     
  249. $(LIBDIRS): FORCE
  250.     @if test $(srcdir) = .; \
  251.     then srcdir=.; \
  252.     else srcdir=`cd $(srcdir); pwd`/$@; \
  253.     fi; \
  254.     echo Making $(do) in $@; \
  255.     test -d $@ || mkdir $@; \
  256.     cd $@; \
  257.     $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
  258.         -f $$srcdir/../Makefile.comm -f $$srcdir/Makefile.sub \
  259.             -f $$srcdir/../Makefile.lib -f $$srcdir/Makefile.dep $(do)
  260.  
  261. $(CPROGDIRS): FORCE
  262.     @if test $(srcdir) = .; \
  263.     then srcdir=.; \
  264.     else srcdir=`cd $(srcdir); pwd`/$@; \
  265.     fi; \
  266.     echo Making $(do) in $@; \
  267.     test -d $@ || mkdir $@; \
  268.     cd $@; \
  269.     $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
  270.         -f $$srcdir/../Makefile.comm -f $$srcdir/Makefile.sub \
  271.             -f $$srcdir/../Makefile.cpg -f $$srcdir/Makefile.dep $(do)
  272.  
  273. $(CCPROGDIRS): FORCE
  274.     @if test $(srcdir) = .; \
  275.     then srcdir=.; \
  276.     else srcdir=`cd $(srcdir); pwd`/$@; \
  277.     fi; \
  278.     echo Making $(do) in $@; \
  279.     test -d $@ || mkdir $@; \
  280.     cd $@; \
  281.     $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
  282.         -f $$srcdir/../Makefile.comm -f $$srcdir/Makefile.sub \
  283.             -f $$srcdir/../Makefile.ccpg -f $$srcdir/Makefile.dep $(do)
  284.  
  285. $(DEVDIRS): FORCE
  286.     @if test $(srcdir) = .; \
  287.     then srcdir=.; \
  288.     else srcdir=`cd $(srcdir); pwd`/$@; \
  289.     fi; \
  290.     echo Making $(do) in $@; \
  291.     test -d $@ || mkdir $@; \
  292.     cd $@; \
  293.     $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
  294.         -f $$srcdir/../Makefile.comm -f $$srcdir/Makefile.sub \
  295.         -f $$srcdir/../Makefile.dev $(do)
  296.  
  297. $(INCDIRS) $(OTHERDIRS): FORCE
  298.     @if test $(srcdir) = .; \
  299.     then srcdir=.; \
  300.     else srcdir=`cd $(srcdir); pwd`/$@; \
  301.     fi; \
  302.     echo Making $(do) in $@; \
  303.     test -d $@ || mkdir $@; \
  304.     cd $@; \
  305.     $(MAKE) $(MDEFINES) srcdir=$$srcdir VPATH=$$srcdir \
  306.         -f $$srcdir/../Makefile.comm -f $$srcdir/Makefile.sub \
  307.             -f $$srcdir/../Makefile.man $(do)
  308.  
  309. version=`cat $(srcdir)/VERSION`
  310.  
  311. .PHONY: dist
  312. dist:
  313.     -rm -fr tmp
  314.     mkdir tmp
  315.     for d in $(DISTDIRS); do \
  316.       mkdir    tmp/$$d; \
  317.     done
  318.     srcdir=`cd $(srcdir); pwd`; \
  319.     cd tmp; \
  320.     $(LN_S) ../Makefile .; \
  321.     $(LN_S) $$srcdir/* . 2>/dev/null; \
  322.     for d in $(DISTDIRS); do \
  323.       (cd $$d; $(LN_S) $$srcdir/$$d/* . 2>/dev/null); \
  324.     done; \
  325.     $(MAKE) srcdir=$$srcdir VPATH=$$srcdir extraclean; \
  326.     for d in $(EXTRADIRS); do \
  327.       (cd $$d; $(MAKE) extraclean); \
  328.     done; \
  329.     rm -f Makefile; \
  330.     $(LN_S) $$srcdir/Makefile.init Makefile
  331.     mv tmp groff-$(version)
  332.     tar cfh - groff-$(version) | gzip -c >groff-$(version).tar.z
  333.     rm -fr groff-$(version)
  334.  
  335. # $(PROGDIRS): libgroff
  336. # grops grotty grodvi: libdriver
  337. # refer lookbib indxbib lkbib: libbib
  338. # $(LIBDIRS) $(PROGDIRS): include
  339.  
  340. .PHONY: $(ALLDIRS) dot $(TARGETS) FORCE
  341.  
  342. subdir_Makefile: Makefile.cfg
  343.     $(MAKE) do=Makefile $(subdir)
  344.  
  345. Makefile.cfg: Makefile
  346.     >Makefile.cfg
  347.     for var in $(MDEFINES); do \
  348.       echo "$$var" >>Makefile.cfg; \
  349.     done
  350.  
  351. depend: srcdir_must_be_dot
  352.  
  353. .PHONY: srcdir_must_be_dot
  354. srcdir_must_be_dot:
  355.     @test "X$(srcdir)" = "X." \
  356.       || (echo This target can only be made in the source directory; \
  357.           exit 1)
  358.  
  359. Makefile: Makefile.in
  360.     $(SHELL) config.status
  361.  
  362. .PHONY: uninstall
  363. uninstall: uninstall_sub uninstall_dirs
  364.  
  365. .PHONY: uninstall_dirs
  366. uninstall_dirs:
  367. # Use rmdir here so that the directories are only removed if they're empty
  368.     -rmdir $(man1dir) $(man5dir) $(man7dir) $(manroot) \
  369.       $(tmacdir) $(fontdir) $(bindir) $(datasubdir) $(datadir)
  370.  
  371. FORCE:
  372.  
  373. .NOEXPORT:
  374.